package com.itheima.io.bufferedreader.demo02;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class BufferedReaderDemo02 {

    public static void main(String[] args) throws IOException {

        BufferedReader bufferedReader = new BufferedReader(new FileReader("itheima-io-bufferedreader\\a.txt"));

//        String line = bufferedReader.readLine();
//        System.out.println(line);
//
//        line = bufferedReader.readLine();
//        System.out.println(line);
//
//        line = bufferedReader.readLine();
//        System.out.println(line);
//
//        line = bufferedReader.readLine();
//        System.out.println(line);

        String line = null;
        while ((line = bufferedReader.readLine()) != null){
            System.out.println(line);
        }



        bufferedReader.close();

    }


}
